package com.ruoyi.system.domain;

import com.ruoyi.common.core.domain.entity.SysBookType;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.TreeEntity;

import java.util.ArrayList;
import java.util.List;

/**
 * 图文档类别信息对象 fm_fc_mstr
 * 
 * @author ruoyi
 * @date 2021-10-18
 */
public class FmFcMstr extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long fcId;

    /** 类别编号 */
    @Excel(name = "类别编号")
    private String fcCode;

    /** 类别名称 */
    @Excel(name = "类别名称")
    private String fcName;

    /** 助记码 */
    @Excel(name = "助记码")
    private String fcMnemonic;

    /** 父级ID */
    private Long fcPid;

    /** 所有父级 */
    private String fcAncestors;

    /** 备注 */
    private String remarks;

    /** 备用字段1 */
    private String backup1;

    /** 备用字段2 */
    private String backup2;

    /** 备用字段3 */
    private String backup3;

    /** 父部门名称 */
    private String parentName;

    /** 子部门 */
    private List<FmFcMstr> children = new ArrayList<FmFcMstr>();


    public void setFcId(Long fcId)
    {
        this.fcId = fcId;
    }

    public Long getFcId() 
    {
        return fcId;
    }
    public void setFcCode(String fcCode) 
    {
        this.fcCode = fcCode;
    }

    public String getFcCode() 
    {
        return fcCode;
    }
    public void setFcName(String fcName) 
    {
        this.fcName = fcName;
    }

    public String getFcName() 
    {
        return fcName;
    }
    public void setFcMnemonic(String fcMnemonic) 
    {
        this.fcMnemonic = fcMnemonic;
    }

    public String getFcMnemonic() 
    {
        return fcMnemonic;
    }
    public void setFcPid(Long fcPid) 
    {
        this.fcPid = fcPid;
    }

    public Long getFcPid() 
    {
        return fcPid;
    }
    public void setFcAncestors(String fcAncestors) 
    {
        this.fcAncestors = fcAncestors;
    }

    public String getFcAncestors() 
    {
        return fcAncestors;
    }
    public void setRemarks(String remarks) 
    {
        this.remarks = remarks;
    }

    public String getRemarks() 
    {
        return remarks;
    }
    public void setBackup1(String backup1) 
    {
        this.backup1 = backup1;
    }

    public String getBackup1() 
    {
        return backup1;
    }
    public void setBackup2(String backup2) 
    {
        this.backup2 = backup2;
    }

    public String getBackup2() 
    {
        return backup2;
    }
    public void setBackup3(String backup3) 
    {
        this.backup3 = backup3;
    }

    public String getBackup3() 
    {
        return backup3;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("fcId", getFcId())
            .append("fcCode", getFcCode())
            .append("fcName", getFcName())
            .append("fcMnemonic", getFcMnemonic())
            .append("fcPid", getFcPid())
            .append("fcAncestors", getFcAncestors())
            .append("remarks", getRemarks())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("backup1", getBackup1())
            .append("backup2", getBackup2())
            .append("backup3", getBackup3())
            .toString();
    }
}
